fix(schema): align doctor JSON schema with Cargo installer field#230
Open
cursor[bot] wants to merge 1 commit into
Open
fix(schema): align doctor JSON schema with Cargo installer field#230cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
Add cargo to doctor dataSchema installers so strict schema validation matches quantex doctor --json. Sync OpenSpec agent-update spec and tests. Remove redundant self/index facts imports that triggered oxlint unused-import errors.
fd6e3af to
f97f75e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cargo 支持已在
quantex doctor --json的data.installers中增加cargo字段,但quantex schema doctor返回的 JSON Schema 仍只声明brew/bun/npm/winget,且在installers上使用additionalProperties: false。任何按该 schema 严格校验真实 doctor 输出的集成都会误报失败。本 PR 将cargo纳入 schema 的properties与required,并补充测试与 OpenSpec 契约说明。另移除src/self/index.ts中与export from './facts'重复的导入,消除 oxlint 的未使用导入报错(否则本地/CI 无法通过bun run lint)。Linked Artifacts
openspec/changes/fix-doctor-json-schema-cargo-installerValidation
bun run memory:checkbun run lintbun run format:checkbun run typecheckbun run test(if behavior changed)在本环境中通过
./node_modules/.bin/oxlint、oxfmt --check、tsc --noEmit、vitest run完成等价校验。memory:check脚本依赖 Bun 的import.meta.dir,当前沙箱无 Bun 未执行。Release Intent
Docs Updated
openspec/...Scope Check
Closure Check
Notes
无。